Platform Explorer / Nuxeo Platform 2023.10

Operation Collection.Create (Create a collection)

Description

Create a new collection. This is returning the document serialization of the created collection.
Operation id Collection.Create
AliasesCollection.CreateCollection
Category Document
Label Create a collection
Requires
Since

Parameters

Name Description Type Required Default value
name string yes  
description string no  

Signature

Inputs void, document
Outputs document, document

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.collections.CreateCollectionOperation
Contributing Component org.nuxeo.ecm.core.automation.features.operations

JSON Definition

{
  "id" : "Collection.Create",
  "aliases" : [ "Collection.CreateCollection" ],
  "label" : "Create a collection",
  "category" : "Document",
  "requires" : null,
  "description" : "Create a new collection. This is returning the document serialization of the created collection.",
  "url" : "Collection.Create",
  "signature" : [ "void", "document", "document", "document" ],
  "params" : [ {
    "name" : "name",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "description",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}